
<!-- BEGIN:main -->

<div class="d_block">


    <p class="d_title_block d_bold" >Video</p>

    <div class="d_divide5"></div>


    <div class="d_content_block">

        <div id="preview" style="padding: 2px"></div>

        <script type="text/javascript">
            function play(file_path, image, from_youtube) {
                var str = '<embed src="block/block_video/views/player.swf" width="245" height="200" allowscriptaccess="always" allowfullscreen="true" flashvars="file=' + file_path + '&autostart=false&image=' + image + '" />';
                if (from_youtube == true) {
                    var str = '<iframe width="245" height="200" src="//www.youtube.com/embed/' + file_path + '" frameborder="0" allowfullscreen></iframe>';
                }
                document.getElementById("preview").innerHTML = str;
            }
            play('{FIRST_FILE_PATH}', '{FIRST_IMAGE}', {FIRST_FROM_YOUTUBE});
        </script>
        

        <!-- BEGIN:video_link -->
        <a style="display: block; text-align: left; padding: 5px" class="d_black_to_blue" href="javascript:play('{FILE_PATH}','{IMAGE}',{FROM_YOUTUBE})">{TITLE}</a>
        <!-- END:video_link -->
    </div>	
</div>


<!-- END:main -->
